import * as api from "@/utils/Api";


// 新增用户
export async function saveUser(data: any) {
    const url = '/user/saveUser';
    return api.POST(url, data);;

}
// 更新用户
export async function updateUser(data: any) {
    const url = '/user/updateUser';
    return api.POST(url, data);

}
// 删除用户
export async function deleteUser(data: any){
    const url = '/user/deleteUser';
    return api.POST(url, data);

}
// 分页查询
export async function pageQueryUser(data: any){
    const url = '/user/pageQueryUser';
    return api.POST(url, data);
}
// 更新当前用户的角色
export async function updateUserRoles(data: any){
    const url = '/user/updateUserRoles';
    return api.POST(url, data);

}